package com.bigdata.service.domain.bo;

import com.bigdata.common.core.validate.AddGroup;
import com.bigdata.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.bigdata.common.core.domain.BaseEntity;

/**
 * 用户积分账户业务对象 user_points
 *
 * @author ruoyi
 * @date 2025-07-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserPointsBo extends BaseEntity {

    /**
     * 关联用户ID
     */
//    @NotBlank(message = "关联用户ID不能为空", groups = { EditGroup.class })
    private Long userId;

    /**
     * 可用总积分
     */
    @NotNull(message = "可用总积分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalPoints;

    /**
     * 历史累计积分
     */
    @NotNull(message = "历史累计积分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cumulativePoints;

    private String createBy;
}
